package backup.engine;

import data.dao.DAOFactory;
import security.crypto.CipherFactory;
import security.crypto.DummyXorCipher;
import net.connection.ConnectionManagerFactory;
import net.connection.SSLConnectionManager;
import net.protocol.ProtocolFactory;
import net.protocol.object.ObjectProtocol;

public class Aset {
	
	public static int step = 0;

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		new Aset();
	}

	
	public Aset()
	{
		//This should be down via a XML or Spring
		CipherFactory.register(new DummyXorCipher());
		DAOFactory.register("repository", "recovered", new String[]{"data"});
		ProtocolFactory.register(new ObjectProtocol());
		ConnectionManagerFactory.register(new SSLConnectionManager());
		(new Thread(ConnectionManagerFactory.getManager())).start();
	}
	
}
